<script type="text/javascript">
//<![CDATA[
$('#ex-list a').bind('click', function (e) {
	$('#code textarea').hide();
	$("#" + $(e.target).attr("name")).show();
});
//]]>
</script>

<div id="test"></div>

<div>
	<ul class="left" style="width:300px;" id="ex-list">
		<li><a href="javascript:;" name="default">Default</a></li>
		<li><a href="javascript:;" name="title">Modules</a></li>
	</ul>

	<div class="left" id="code">
		<div style="width:400px;margin:10px;">
			<textarea rows="10" cols="70" id="default">
EAS_JS.Script.load({
	url : 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js',
	load : function () {
		$('#test').html($('#test').html() + '> 123');
	}
});
EAS_JS.Script.load({
	url : '../library/function.js',
	load : function () {
		$('#test').html($('#test').html() + '> qwe');
	}
});
EAS_JS.Script.load({
	url : 'http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js',
	load : function () {
		$('#test').html($('#test').html() + '> test');
	}
});
EAS_JS.Script.load({
	url : 'http://www.w2blog.net/Templates/script/opFeedback.js',
	load : function () {
		$('#test').html($('#test').html() + '> zxc');
	}
});
</textarea>

			<textarea rows="10" cols="70" id="title" style="display:none;">
EAS_JS.Script
	.build({
		name : 'jquery',
		url : 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'
	})
	.build({
		name : 'local',
		def : function () {
			$('#test').html($('#test').html() + 'local > ');
		}
	})
	.build({
		name : 'test',
		url : 'http://www.w2blog.net/Templates/script/opFeedback.js'
	})
	.build({
		name : 'index',
		def : function () {
			$('#test').html($('#test').html() + 'index > ');
		},
		requires : ['jquery', 'local', 'test']
	});

EAS_JS.Script.run({
	name : 'index'
});
</textarea>

		<input type="button" value="运行" onclick="eval($('#code textarea:visible').val());" />
		</div>
	</div>
</div>